<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style>
        #tb {
            width: 800px;
            margin: 0px auto;
        }
    </style>
</head>
<body>
欢迎你，<font color="red">${Session["user"].name}</font> ，登录成功 <br/>
<a href="/user/toAdd.do">新增用户</a>
<table id="tb" border="1px solid">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>入职日期</th>
        <th>操作</th>
    </tr>
    <#list list as u>
        <tr>
            <td>${u.id}</td>
            <td>${u.name}</td>
            <td>${u.age}</td>
            <td>${u.hiredate?string('yyyy-MM-dd HH:mm:ss')}</td>
            <td>
                <a href="/user/get/${u.id}.do">修改</a>
                <a href="/user/del/${u.id}.do">删除</a>
            </td>
        </tr>
    </#list>

</table>


</body>    
    